﻿using Core.Aspects;
using Core.IRepository;
using Core.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace Core.IServices
{
    [ServiceContract()]    
    public interface IManageReadService<TId, TDto, TQuery>
    {
        [OperationContract()]       
        TDto FindByID(TId id);

        [OperationContract()]        
        QueryResponse<TDto> FindBy(Request<TQuery> request);
    }
}
